﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainUI : MonoBehaviour {

    public HeroController hc;
    public Vector2 moveValue;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    public void JoyMove(Vector2 move)
    {
        hc.maxSpeed = 3.5f;
        moveValue = move;
    }

    public void JoyMoveSpeed(Vector2 move)
    {

    }

    public void JoyMoveEnd()
    {
        //moveValue = new Vector2(0, 0);
        hc.maxSpeed = 0;
    }
}
